<!DOCTYPE HTML>
<html>

<head>
    <meta charset="utf-8">
    <title>付款</title>
    <meta name="viewport"
        content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <link rel="stylesheet" type="text/css" href="../css/api.css" />
    <link rel="stylesheet" type="text/css" href="../css/aui.css" />
    <link rel="stylesheet" type="text/css" href="../css/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="css/shoufeipay.css?v=6" />
    <style>
        .aui-content{
            margin-bottom: 80px;
        }
        html, body {
            background: #f5f5f5;
        }
        .text-grey{
            color: #999;
        }
        .text-red{
            color: #ff0000;
        }
        .text-green{
            color: #18ca07;
        }   
        .aui-tab-item.aui-active{
            font-weight: bold;
        }  
        .aui-radio:checked, .aui-radio.aui-checked, .aui-checkbox:checked, .aui-checkbox.aui-checked{
            background-color:#289fff;
            border:solid 1px #289fff;
        } 
        .border-r {
            border-radius: 6px;
        }
        .uni-panel-hs {
            background-color: #ffffff;
            -webkit-box-orient: horizontal;
            -webkit-box-direction: normal;
            -webkit-flex-direction: row;
            flex-direction: row;
            -webkit-box-align: center;
            -webkit-align-items: center;
            align-items: center;
            box-shadow: 0px 5px 9px 0px rgb(131 134 163 / 12%);
        }
    </style>
</head>

<body>
    <div id="app" v-cloak>
        <div class="aui-content uni-panel-hs border-r aui-margin-t-15 aui-padded-15">
            <div class="money">
                <div class="money_title text-grey aui-font-size-12">本次收取金额</div>
                <div class="money_num">￥<span>{{payCost.toFixed(2)}}</span></div>
                <div class="line_box border-r">
                    <div class="line_item">
                        <div class="line_title text-grey">{{totalCount}}笔账单</div>
                        <div class="line_content text-grey">￥{{totalCost.toFixed(2)}}</div>
                    </div>
                    <div class="line_item">
                        <div class="line_title text-grey">优惠</div>
                        <div class="line_content text-red">- ￥{{discountCost.toFixed(2)}}</div>
                    </div>
                    <div class="line_item">
                        <div class="line_title text-grey">违约金</div>
                        <div class="line_content text-green">+ ￥{{breakCost.toFixed(2)}}</div>
                    </div>
                    <div class="cl"></div>
                </div>
            </div>
            <div class="cl"></div>
            <div class="pay_title">
                <label>收款方式</label>
            </div>
            <div class="aui-tab " id="tab">
                <div id="tabbar0" class="aui-tab-item aui-tab-color" v-bind:class="{'aui-active':payType==1}"
                    v-on:click="doSwitchType(1)">线下支付
                </div>
                <div id="tabbar1" class="aui-tab-item aui-tab-color" v-bind:class="{'aui-active':payType==2}"
                    v-on:click="doSwitchType(2)">线上支付
                </div>
            </div>
            <div v-if="!paySucceed">
                <div v-if="payType==1" class="under_pay aui-margin-b-15">
                    <div v-on:click="doOffPay(item)" class="money_pay_list new_pay_type_list" v-for="item in paymentMethods" v-bind:class="{'pay_type_active':chargeMoneyTypeId==item.id}">
                        <label class="basicfont">
                            <div class="money_pay_list_input">
                                <input v-bind:checked="chargeMoneyTypeId==item.id" class="aui-radio" type="radio"
                                    name="demo">
                            </div>
                            <div class="money_pay_list_txt">
                                {{item.name}}
                            </div>
                            <div class="cl"></div>
                        </label>
                    </div>
                  
                </div>
                
                    <div v-if="wechatPayEnable||alipayEnable">
                        <div class="money_pay" v-if="payType==2">
                        <div class="money_pay_list" style="display: flex;">
                            <label v-if="wechatPayEnable" class="basicfont" v-on:click="do_generate(1)">
                                <div class="money_pay_list_input">
                                    <input class="aui-radio" v-bind:checked="payOnlineType==1" type="radio" name="demo">
                                </div>
                                <div class="money_pay_list_img">
                                    <img src="../image/pay_icon_weixin.png" />
                                </div>
                                <div class="money_pay_list_txt">
                                    微信付款
                                </div>
                                <div class="cl"></div>
                            </label>
                            <label v-if="alipayEnable" class="basicfont" v-on:click="do_generate(2)">
                                <div class="money_pay_list_input">
                                    <input class="aui-radio" v-bind:checked="payOnlineType==2" type="radio" name="demo">
                                </div>
                                <div class="money_pay_list_img">
                                    <img src="../image/pay_icon_zhifubao.png" />
                                </div>
                                <div class="money_pay_list_txt">
                                    支付宝付款
                                </div>
                                <div class="cl"></div>
                            </label>
                            
                        </div>
                        <div class="money_pay_list_erweima">
                            <div class="QrCode">
                                <img v-bind:src="QrCodeUrl" />
                            </div>
                            <div v-if="QrCodeUrl" class="text-grey" style="text-align: center;">请住户使用{{payOnlineType==1?'微信':'支付宝'}}扫码支付</div>
                        </div>
                    </div>
                </div>
                <div v-if="payType==2&&!wechatPayEnable&&!alipayEnable">
                    <div class="pay_status">
                        <label class="text-grey">暂未开线上支付功能</label>
                    </div>
                </div>
            </div>
            
        </div>


        <div v-if="payType==1" class="money_pay_list_erweima new_money_pay_list" v-on:click="payroomfeeoffline()">
            <div class="under_pay_list_erweima_txt">确认收款</div>
        </div>

        <!-- <div v-if="paySucceed">
                <div class="pay_status">
                    <label><i class="icon iconfont icon-yidu"></i> 缴费成功</label>
                </div>
                <div class="money_pay_list_erweima fixbottom" v-on:click="doOpenPrint()">
                    <div class="under_pay_list_erweima_txt">打印收款单据</div>
                </div>
            </div> -->
    </div>
</body>
<script type="text/javascript " src="../script/api.js "></script>
<script type="text/javascript " src="../script/vue.js "></script>
<script type="text/javascript" src="../script/config.js"></script>
<script type="text/javascript" src="../script/common.js"></script>
<script type="text/javascript" src="../script/aui-toast.js"></script>
<script type="text/javascript" src="../script/aui-popup-new.js"></script>
<script type="text/javascript" src="../script/aui-pull-refresh.js"></script>
<script type="text/javascript" src="../script/aui-scroll.js"></script>
<script type="text/javascript" src="js/shoufeipay.js"></script>

</html>